Use config instead of globals for ImageGallery
authorumherirrender <umherirrender_de.wp@web.de>
Fri, 22 Aug 2014 20:36:59 +0000 (22:36 +0200)
committerumherirrender <umherirrender_de.wp@web.de>
Fri, 22 Aug 2014 20:36:59 +0000 (22:36 +0200)
commita5ed2df4456a90cfc231d8f8bb373616c6d8d23f
tree3fd7083e24d9073a6be764fea4548ee99d344426
parentb728d6920b05c8b667651f7e99d749496474f02b
Use config instead of globals for ImageGallery

Have to pass a context to the constructor to acutally use it for
settings.

Also adds a RequestContext::getMainAndWarn to get a default warning,
when using the main request, but it would be better to pass one.

Change-Id: I1628a1790c45d44aa4239701486b8b1b7c59a0e6
includes/CategoryViewer.php
includes/context/RequestContext.php
includes/gallery/ImageGalleryBase.php
includes/specialpage/ImageQueryPage.php
includes/specials/SpecialNewimages.php
includes/specials/SpecialUpload.php